import { PointMultipleMap as P, ItemMap as I, PointTypeMap as T } from "@/map/point";
import { GlobalStatusMap as G } from "@/map/global";
import { Member } from "./member";

export interface PointItem {
  [I.Type]: "plus" | "minus";
  [I.Title]: string;
  [I.NumberOfPeople]: number;
  [I.NumberOfScore]: number;
  [I.MemberList]: Member[];
}

export interface PointTypeStatus {
  [G.Id]: string;
  [G.Name]: string;
}

export interface PointType {
  [T.Name]: string;
  [T.Status]: PointTypeStatus;
  [T.CreateTime]: string;
}

export interface PointRecordStatus {
  [G.Id]: string;
  [G.Name]: string;
}

export interface PointMultipleRecord {
  [P.Id]: string;
  [P.Title]: string;
  [P.Type]: PointType;
  [P.NumberOfPeople]: number;
  [P.Operater]: Member;
  [P.OperationTime]: string;
  [P.Status]: number;
  [P.Items]: PointItem[];
  [P.Remark]?: string;
}
